package com.lanou3g.code0408.homework;

/**
 * Created by dllo on 18/4/8.
 */
public class Car {
    private String brand;
    private String oilMass;
    private int speed;

    //普通方法
    public void moveHouse(){
        System.out.println(this.brand + "的耗油量是" + this.oilMass + "速度是" + this.speed);
    }

    //构造方法
    public Car(){}

    public Car(String brand,String oilMass,int speed){
        this.brand = brand;
        this.oilMass =  oilMass;
        this.speed = speed;
    }

    public Car(String brand){
        this.brand = brand;
    }




    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getOilMass() {
        return oilMass;
    }

    public void setOilMass(String oilMass) {
        this.oilMass = oilMass;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }
}
